package myjava.test.ui.model.panel;

import java.awt.Graphics;
import javax.swing.JPanel;

public class FreePanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public FreePanel() {
		new FreePanel(0, 0);
	}
	
	public FreePanel(int width, int height){
		this.setSize(width, height);
		this.setOpaque(false);
		repaint();
	}
	
	@Override
	protected void paintComponent(Graphics g) {
//		Image img = new ImageIcon("C://Users/Administrator/Desktop/picture/535/mp.jpg").getImage();
//		g.drawImage(img, 0, 0, img.getWidth(null), img.getHeight(null), 0, 0, getWidth(), getHeight(), null);
		super.paintComponent(g);
	}

}
